<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String webContent = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("webContent", webContent);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加用户</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">文章管理</a></li>
    <li><a href="#">添加文章</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    <div class="formtitle"><span>添加文章信息 &nbsp;<%-- ${sessionScope.msg} --%></span></div>
       
       <form action="${webContent}article/addArticle">
       		<ul class="forminfo">
       		<li><label>题  目</label><input name="title" type="text" class="dfinput" /></li>
    		<li><label>作  者</label><input name="author" type="text" class="dfinput" value="${sessionScope.user.username }"/></li>
    		<li><label>内  容</label>
    			<input name="content" type="text" class="dfinput" />
    		</li>
    		<li><label>阅读量</label><input name="readcount" type="text" class="dfinput" /></li>
		    
		    <li><label>&nbsp;</label><input type="reset" class="btn" value="重置"/> <input type="submit" class="btn" value="保存"/></li>
		    </ul>
       </form>

	</div>
</body>
</html>
